# from PIL import Image, ImageDraw, ImageFont
#
# # 生成图片
# img = Image.new(mode='RGB', size=(120, 30), color=(255, 255, 255))
# # 在编辑器查看
# # img.show()
#
#
# # 创建一个画笔
# draw = ImageDraw.Draw(img, mode="RGB")
#
# font = ImageFont.truetype('FZSTK.TTF', 28)
#
# draw.text([0, 0], '帅哥', 'red', font=font)
#
#
# with open('code.png', 'wb') as f:
#     img.save(f, format='png')
from app01.utils.code import check_code

img, code_string = check_code()
img.show()
print(code_string)


